﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Decoration.IRepository
{
    public interface IBaseRepository<T> where T : class, new()
    {
        void Add(T t);
        void Update(T t);
        void Delete(T t);
        T Get(Expression<Func<T, bool>> whereLambda);
        IQueryable<T> Query(Expression<Func<T, bool>> whereLambda);

        bool SaveChanges();
    }
}
